package com.beta.cust.bind.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.beta.cust.bind.api.request.CustListReq;
import com.beta.cust.bind.api.response.CustDetailResp;
import com.beta.cust.bind.mapper.entity.CustInfo;

import java.util.List;

/**
 * <p>
 * 客户信息表 服务类
 * </p>
 *
 * @author pcc
 * @since 2024-03-12
 */
public interface ICustInfoService extends IService<CustInfo> {

    CustDetailResp selectByUserAndExternalId(String userId, String externalUserId, String corpId);

    IPage<CustDetailResp> selectPage(CustListReq req);

    CustDetailResp getLatest(String userId,String corpId);

    boolean updateByExternal(String externalUserId,CustInfo custInfo,String corpId);
}
